<?php


namespace app\api\controller;


use think\response\Json;
use Zewail\Api\Facades\Response as ApiResponse;

class Product
{
    private $productService =null ;
    public function __construct()
    {
        $this->productService = new \app\api\service\Product();
    }

    public function dataIlist(){
        $page=request()->get("page");
        $limit=request()->get("limit");
        $data['data']=$this->productService->dataIlist(null,$page,$limit);
        $data['count']=$this->productService->dataIlistAllCount(null);
        $data["msg"]="成功";
        $data['code']=0;
        return Json::create($data);
    }
}